<template>
	<view>
		<Header title="编辑地址"></Header>
		<AddressEdit :addressId="id" from="list" @success="handleSuccess"></AddressEdit>
	</view>
</template>

<script>
	import Header from '@/subpages/components/header.vue'
	import AddressEdit from '../../components/address/edit.vue'
	export default {
		components: {
			Header,
			AddressEdit
		},
		data() {
			return {
				id: ''
			}
		},
		onLoad(params) {
			this.id = params.id
		},
		methods: {
			/**返回*/
			handleSuccess() {
				uni.navigateBack({
					delta: 1
				})
			}			
		}
	}
</script>

<style>

</style>
